<template>
  <div class="auth-page" v-show="!isAuth">
    <van-button
      block
      type="info"
      open-type="getUserInfo"
      @getuserinfo="onGotUserInfo"
      color="#FFA722"
      size="large"
      class="auth-btn"
    >点击进入小程序</van-button>
  </div>
</template> 

<script>
export default {
  data() {
    return {
    };
  },
  props: {
    isAuth: {
      type: Boolean,
      default: true
    }
  },
  watch: {
      isAuth() {
      }
  },
  mounted() {
  },
  methods: {
    onGotUserInfo(e) {
      this.$emit('getUserInfo', e.mp.detail);
    }
  }
};
</script>

<style scoped>
.auth-page {
  position: relative;
  height: 100vh;
  width: 100%;
}
</style>